package com.itheima.service.impl;

import com.itheima.dao.IUserDao;
import com.itheima.domain.Users;
import com.itheima.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("userService")
@Transactional
public class UserServiceImpl implements IUserService {
    @Autowired
    IUserDao userDao;
    @Override
    public void doRegister(Users user) {
        userDao.doRegister(user);
    }

    @Override
    public Users findUser(Users user){
        return userDao.findUser(user);
    }
}
